package org.example.workbench.service.impl;

import org.example.workbench.domain.ContactsRemark;
import org.example.workbench.mapper.ContactsRemarkMapper;
import org.example.workbench.service.ContactsRemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("/ContactsRemarkService")
public class ContactsRemarkImpl implements ContactsRemarkService {
    @Autowired
    private ContactsRemarkMapper contactsRemarkMapper;

    @Override
    public int deleteOneContactsRemarkById(String id) {
        return contactsRemarkMapper.deleteOneContactsRemarkById(id);
    }

    @Override
    public int updateContactsRemarkNoteContentById(ContactsRemark contactsRemark) {
        return contactsRemarkMapper.updateContactsRemarkNoteContentById(contactsRemark);
    }

    @Override
    public int insertOneContactsRemarkByContactsRemark(ContactsRemark contactsRemark) {
        return contactsRemarkMapper.insertOneContactsRemarkByContactsRemark(contactsRemark);
    }

    @Override
    public List<ContactsRemark> getContactsRemarkByContactsId(String contactId) {
        return contactsRemarkMapper.getContactsRemarkByContactsId(contactId);
    }
}
